package com.the4man.framework.utils;

import net.sf.json.util.PropertyFilter;

import java.util.List;

/**
 * Created by lenovo on 2017/12/12.
 */
public class IgnorePropertyFilter implements PropertyFilter {
    private List ignorePro = null;

    IgnorePropertyFilter(List filterProperty) {
        this.ignorePro = filterProperty;
    }

    public boolean apply(Object source, String name, Object value) {
        return this.ignorePro.contains(name);
    }
}
